package com.txm.controller;


import common.dataBinding.editor.StringEscapeEditor;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.web.bind.WebDataBinder;
import org.springframework.web.bind.annotation.InitBinder;

/**
 * Created by Administrator on 2016/4/2.
 */
public class BaseController {
    public static Logger logger = LogManager.getLogger(BaseController.class.getName());

    @InitBinder
    public void initDate1(WebDataBinder binder) {
        binder.registerCustomEditor(String.class, new StringEscapeEditor(true, true));
}
}